package com.aaa.mapper;

import com.aaa.entity.CommentPraise;
import com.aaa.entity.FrontUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Bean
 * @since 2021-09-07
 */
public interface CommentPraiseMapper extends BaseMapper<CommentPraise> {

    //评论点赞
    Integer add(@Param("cid")Integer cid,@Param("uid") Integer uid,@Param("state") Integer state);

    //根据作品id修改状态
    Integer updastate(@Param("id") Integer id,@Param("state") Integer state);


    String uname(Integer uid);
}
